<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>My Beautiful Lists</title>
</head>
<body>

	<h1>Log in</h1>
	<form action="/myList/connection" method=post>
		<table>
			<tr>
				<td>Login</td>
				<td><input type="text" name=login /></td>
			</tr>
			<tr>
				<td>Password</td>
				<td><input type="password" name=pwd /></td>
			</tr>
		</table>
		<%
			if ("fail".equals(request.getParameter("error"))) {
				out.println("<span style=\"color:red\"> Error : couple login/pass is not valid</span>");
			}
		%>
		<input type="hidden" name="action" value="login" />
		<input type="submit" value="login" />

	</form>
	
	<h2><a href="register.jsp">I want to register NOW !</a></h2>
</body>
</html>